#ifndef FILESORT_H
#define FILESORT_H
/*---------------------------------------------------------------------------*/
#include <QDate>
#include <QSortFilterProxyModel>
#include <QStandardItemModel>
#include <iostream>
#include "BrowserBox.h"
/*---------------------------------------------------------------------------*/
using namespace std;
class FileSortFilterModel : public QSortFilterProxyModel
{
	Q_OBJECT

	public:
	
	FileSortFilterModel(QObject *parent = 0);
	
	Qt::ItemFlags 		flags(const QModelIndex& index) const; // uneditable items
	bool 				insertRow ( int row, const QModelIndex & parent = QModelIndex() );
	
	
	protected:
	
	bool 				filterAcceptsRow(int sourceRow, const QModelIndex &sourceParent) const;
	bool 				lessThan(const QModelIndex &left, const QModelIndex &right) const;
	
	
	private:
	
};
/*---------------------------------------------------------------------------*/
#endif
